module Aggregator
  
  module AggregationModel
    
    def self.included(base)
      
      base.class_eval do
        has_many :aggregation_feeds
        has_many :feeds, :through => :aggregation_feeds
        validates_presence_of :title
      end
      
      base.extend(ClassMethods)
    end
    
    module ClassMethods
    end
    
  end
end
